home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2035 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  920 b 

  1. Path: news.production.compuserve.com!news
  2. From: Bill Symmes <71046.623@CompuServe.COM>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What should be returned?
  5. Date: 18 Jan 1996 16:56:36 GMT
  6. Organization: CompuServe, Inc. (1-800-689-0736)
  7. Message-ID: <4dlu44$g9r$2@mhadg.production.compuserve.com>
  8. References: <tcpnntpd.16.1.17.17.34.44.2781597121.346998@the-fix.sos.on.ca>
  9.  
  10. The exit() function returns the value in the paran, e.g., exit(5) 
  11. would return a DOS error level of 5.
  12.  
  13. A return() at the end of main() also returns the DOS error level.
  14.  
  15. Commonly, an error level of 0 is returned if all is well, and 
  16. some non-zero value returned.  The returned error level can be 
  17. tested in batch files.
  18.  
  19. -- 
  20. Bill Symmes                           P*ROM Software Inc
  21. 71046.623@compuserve.com              +1 802 862-7500
  22.                                       +1 802 862-8357 (Fax)    
  23.                                   Burlington VT 05406-4027 
  24.